<div class="head dark">
    <div class="icon">
        <span class="<?= $icon; ?>"></span>
    </div>
    <h2><?= $title; ?></h2>
    <?php if (!empty($buttons)) { ?>
        <ul class="buttons">  
            <?php foreach ($buttons as $button) { ?>
                <li>
                    <a href="<?= Yii::app()->createUrl( $button['href'], $params = array()); ?>"><span class="<?= $button['icon']; ?>"></span></a>                               
                </li>
            <?php } ?>
        </ul>
    <?php } ?>
</div>  